"""
isalpha() : 如果字符串至少有一个字符并且所有字符都是字母，则返回True,否则返回Fales

isdigit() : 如果字符串至少有一个字符并且所有字符都是数字，则返回True,否则返回Fales

isalnum() : 如果字符串至少有一个字符并且所有字符都是数字或者字母，则返回True,否则返回Fales

isspace() : 如果字符串中只包含空白，则返回True,否则返回Fales
"""
print('...........isalpha()...............')
str = "abcdewf"
newstr = str.isalpha()
print(newstr)

str1 = "abcdewf1234"
newstr1 = str1.isalpha()
print(newstr1)

print('...........isdigit()...............')
str2 = "abcdewf1234"
newstr2 = str2.isdigit()
print(newstr1)

str3 = "1234"
newstr3 = str3.isdigit()
print(newstr3)


print('...........isalnum()...............')
str4 = "abcdewf1234"
newstr4 = str4.isalnum()
print(newstr4)

str5 = "1234"
newstr5 = str5.isalnum()
print(newstr5)


print('...........isspace()...............')
s = "    "
news = s.isspace()
print(news)

s1 = "1234   "
news1 = s1.isspace()
print(news1)